﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Clinica/MasterPageAtencion.master"
    AutoEventWireup="true" CodeFile="wfAtencionDiagnostico.aspx.cs" Inherits="Clinica_wfAtencionDiagnostico" %>

<%@ Register Assembly="DevExpress.Web.v11.2, Version=11.2.7.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxPopupControl" TagPrefix="dx" %>
<%@ Register Assembly="DevExpress.Web.ASPxEditors.v11.2, Version=11.2.7.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxEditors" TagPrefix="dx" %>
<%@ Register Assembly="DevExpress.Web.v11.2, Version=11.2.7.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxPanel" TagPrefix="dx" %>
<%@ Register Assembly="DevExpress.Web.v11.2, Version=11.2.7.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxTabControl" TagPrefix="dx" %>
<%@ Register Assembly="DevExpress.Web.v11.2, Version=11.2.7.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxClasses" TagPrefix="dx" %>
<%@ Register Assembly="DevExpress.Web.ASPxGridView.v11.2, Version=11.2.7.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxGridView" TagPrefix="dx" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentMenuSecundario" runat="Server">
    <li><a href="wfInterconsultaListado.aspx" class="">Interconsulta</a></li>
    <li><a href="wfAtencionListado.aspx" class="active">Atención</a></li>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="ModuleTitleContent" runat="Server">
    Atención
</asp:Content>
<asp:Content ID="Content4" ContentPlaceHolderID="ContentEnlacesRapidos" runat="Server">
</asp:Content>
<asp:Content ID="Content5" ContentPlaceHolderID="MainContent" runat="Server">
    <style type="text/css">
        .Filas
        {
            padding: 0.60em 1em;
        }
        .btns
        {
            width: 40%;
        }
    </style>
    <ul class="tabs primary">
        <li><a href="wfAtencionListado.aspx">Listado de Atenciones</a></li>
        <li><a href="wfAtencion.aspx" class="">Registrar Atención</a></li>
        <li><a href="wfAtencionEnfermedadActual.aspx" class="">Enfermedad Actual</a></li>
        <!--<li><a href="wfAtencionHistoriaPersonal.aspx" class="">Historia Personal</a></li>
        <li><a href="wfAtencionHistoriaSocial.aspx" class="">Historia Social</a></li>-->
        <li><a href="wfAtencionExamenActividad.aspx" class="">Examen Actividad</a></li>
        <li><a href="wfAtencionExamenEspecialidad.aspx" class="">Examen Especialidad</a></li>
        <li class="active"><a href="wfAtencionDiagnostico.aspx" class="">Diagnostico</a></li>
    </ul>
    <h4>
        Diagnostico</h4>
    <table width="99%">
        <tr>
            <td>
                <dx:ASPxPanel ID="ASPxPanel1" runat="server" Width="99%">
                    <PanelCollection>
                        <dx:PanelContent ID="PanelContent1" runat="server" SupportsDisabledAttribute="True">
                            <table>
                                <tr>
                                    <td>
                                        <dx:ASPxButton ID="btnAceptar" runat="server" ClientIDMode="AutoID" CssFilePath="~/App_Themes/PlasticBlue/{0}/styles.css"
                                            CssPostfix="PlasticBlue" SpriteCssFilePath="~/App_Themes/PlasticBlue/{0}/sprite.css"
                                            Text="Aceptar" OnClick="btnAceptar_Click">
                                        </dx:ASPxButton>
                                    </td>
                                    <td>
                                        <dx:ASPxButton ID="btnCancelar" runat="server" ClientIDMode="AutoID" CssFilePath="~/App_Themes/PlasticBlue/{0}/styles.css"
                                            CssPostfix="PlasticBlue" SpriteCssFilePath="~/App_Themes/PlasticBlue/{0}/sprite.css"
                                            Text="Cancelar" AutoPostBack="False" OnClick="btnCancelar_Click">
                                        </dx:ASPxButton>
                                    </td>
                                </tr>
                            </table>
                        </dx:PanelContent>
                    </PanelCollection>
                </dx:ASPxPanel>
            </td>
        </tr>
    </table>
    <table width="99%">
        <tr>
            <td>
                <dx:ASPxPageControl ID="ASPxPageControl1" runat="server" ActiveTabIndex="0" ClientIDMode="AutoID"
                    CssFilePath="~/App_Themes/PlasticBlue/{0}/styles.css" CssPostfix="PlasticBlue"
                    Width="50%">
                    <TabPages>
                        <dx:TabPage Text="Datos">
                            <ContentCollection>
                                <dx:ContentControl ID="ContentControl1" runat="server" SupportsDisabledAttribute="True">
                                    <table>
                                        <tr>
                                            <td colspan="2">
                                                <dx:ASPxButton ID="btnAgregar" runat="server" CssFilePath="~/App_Themes/PlasticBlue/{0}/styles.css"
                                                    CssPostfix="PlasticBlue" SpriteCssFilePath="~/App_Themes/PlasticBlue/{0}/sprite.css"
                                                    Text="Agregar" OnClick="btnAgregar_Click">
                                                </dx:ASPxButton>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td class="Filas">
                                                <dx:ASPxLabel ID="ASPxLabel19" runat="server" Text="Descripción">
                                                </dx:ASPxLabel>
                                            </td>
                                            <td class="Filas">
                                                <dx:ASPxTextBox ID="txtDescripcion" runat="server" ClientIDMode="AutoID" CssFilePath="~/App_Themes/PlasticBlue/{0}/styles.css"
                                                    CssPostfix="PlasticBlue" SpriteCssFilePath="~/App_Themes/PlasticBlue/{0}/sprite.css"
                                                    Width="170px">
                                                    <ValidationSettings>
                                                        <ErrorFrameStyle ImageSpacing="4px">
                                                            <ErrorTextPaddings PaddingLeft="4px" />
                                                        </ErrorFrameStyle>
                                                        <RegularExpression ErrorText="Fall&#243; la validaci&#243;n de expresi&#243;n Regular">
                                                        </RegularExpression>
                                                    </ValidationSettings>
                                                </dx:ASPxTextBox>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td class="Filas">
                                                <dx:ASPxLabel ID="ASPxLabel24" runat="server" Text="Capítulo">
                                                </dx:ASPxLabel>
                                            </td>
                                            <td class="Filas">
                                                <dx:ASPxComboBox ID="cboCapitulo" runat="server" ClientIDMode="AutoID" CssFilePath="~/App_Themes/PlasticBlue/{0}/styles.css"
                                                    CssPostfix="PlasticBlue" SpriteCssFilePath="~/App_Themes/PlasticBlue/{0}/sprite.css"
                                                    ValueType="System.String" AutoPostBack="True" 
                                                    OnSelectedIndexChanged="cboCapitulo_SelectedIndexChanged">
                                                    <LoadingPanelImage Url="~/App_Themes/PlasticBlue/Editors/Loading.gif">
                                                    </LoadingPanelImage>
                                                    <ValidationSettings>
                                                        <ErrorFrameStyle ImageSpacing="4px">
                                                            <ErrorTextPaddings PaddingLeft="4px" />
                                                        </ErrorFrameStyle>
                                                        <RegularExpression ErrorText="Fall&#243; la validaci&#243;n de expresi&#243;n Regular">
                                                        </RegularExpression>
                                                    </ValidationSettings>
                                                </dx:ASPxComboBox>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td class="Filas">
                                                <dx:ASPxLabel ID="ASPxLabel25" runat="server" Text="Grupo">
                                                </dx:ASPxLabel>
                                            </td>
                                            <td class="Filas">
                                                <dx:ASPxComboBox ID="cboGrupo" runat="server" ClientIDMode="AutoID" CssFilePath="~/App_Themes/PlasticBlue/{0}/styles.css"
                                                    CssPostfix="PlasticBlue" SpriteCssFilePath="~/App_Themes/PlasticBlue/{0}/sprite.css"
                                                    ValueType="System.String" AutoPostBack="True" 
                                                    OnSelectedIndexChanged="cboGrupo_SelectedIndexChanged">
                                                    <LoadingPanelImage Url="~/App_Themes/PlasticBlue/Editors/Loading.gif">
                                                    </LoadingPanelImage>
                                                    <ValidationSettings>
                                                        <ErrorFrameStyle ImageSpacing="4px">
                                                            <ErrorTextPaddings PaddingLeft="4px" />
                                                        </ErrorFrameStyle>
                                                        <RegularExpression ErrorText="Fall&#243; la validaci&#243;n de expresi&#243;n Regular">
                                                        </RegularExpression>
                                                    </ValidationSettings>
                                                </dx:ASPxComboBox>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td class="Filas">
                                                <dx:ASPxLabel ID="ASPxLabel26" runat="server" Text="Categoría">
                                                </dx:ASPxLabel>
                                            </td>
                                            <td class="Filas">
                                                <dx:ASPxComboBox ID="cboCategoria" runat="server" ClientIDMode="AutoID" CssFilePath="~/App_Themes/PlasticBlue/{0}/styles.css"
                                                    CssPostfix="PlasticBlue" SpriteCssFilePath="~/App_Themes/PlasticBlue/{0}/sprite.css"
                                                    ValueType="System.String" AutoPostBack="True" 
                                                    OnSelectedIndexChanged="cboCategoria_SelectedIndexChanged">
                                                    <LoadingPanelImage Url="~/App_Themes/PlasticBlue/Editors/Loading.gif">
                                                    </LoadingPanelImage>
                                                    <ValidationSettings>
                                                        <ErrorFrameStyle ImageSpacing="4px">
                                                            <ErrorTextPaddings PaddingLeft="4px" />
                                                        </ErrorFrameStyle>
                                                        <RegularExpression ErrorText="Fall&#243; la validaci&#243;n de expresi&#243;n Regular">
                                                        </RegularExpression>
                                                    </ValidationSettings>
                                                </dx:ASPxComboBox>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td>
                                                <dx:ASPxLabel ID="ASPxLabel22" runat="server" Text="Código CIE10">
                                                </dx:ASPxLabel>
                                            </td>
                                            <td class="Filas">
                                                <dx:ASPxTextBox ID="txtCodigo" runat="server" ClientIDMode="AutoID" CssFilePath="~/App_Themes/PlasticBlue/{0}/styles.css"
                                                    CssPostfix="PlasticBlue" SpriteCssFilePath="~/App_Themes/PlasticBlue/{0}/sprite.css"
                                                    Width="170px">
                                                    <ValidationSettings>
                                                        <ErrorFrameStyle ImageSpacing="4px">
                                                            <ErrorTextPaddings PaddingLeft="4px" />
                                                        </ErrorFrameStyle>
                                                        <RegularExpression ErrorText="Fall&#243; la validaci&#243;n de expresi&#243;n Regular">
                                                        </RegularExpression>
                                                    </ValidationSettings>
                                                </dx:ASPxTextBox>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td colspan="2">
                                                <dx:ASPxRadioButtonList ID="rbtTipo" runat="server" ClientIDMode="AutoID" CssFilePath="~/App_Themes/PlasticBlue/{0}/styles.css"
                                                    CssPostfix="PlasticBlue" RepeatDirection="Horizontal" SpriteCssFilePath="~/App_Themes/PlasticBlue/{0}/sprite.css"
                                                    TextSpacing="4px">
                                                    <Items>
                                                        <dx:ListEditItem Text="Gestación" Value="Gestación" />
                                                        <dx:ListEditItem Text="Morbilidad" Value="Morbilidad" />
                                                        <dx:ListEditItem Text="Intrahospitalario" Value="Intrahospitalario" />
                                                        <dx:ListEditItem Text="Restricción" Value="Restricción" />
                                                    </Items>
                                                    <ValidationSettings ErrorText="Valor inv&#225;lido">
                                                        <RegularExpression ErrorText="Fall&#243; la validaci&#243;n de expresi&#243;n Regular">
                                                        </RegularExpression>
                                                    </ValidationSettings>
                                                </dx:ASPxRadioButtonList>
                                            </td>
                                        </tr>
                                    </table>
                                </dx:ContentControl>
                            </ContentCollection>
                        </dx:TabPage>
                        <dx:TabPage Text="Listado">
                            <ContentCollection>
                                <dx:ContentControl ID="ContentControl2" runat="server" SupportsDisabledAttribute="True">
                                    <table>
                                        <tr>
                                            <td class="Filas">
                                                <dx:ASPxGridView ID="grdListaDiagnostico" runat="server" ClientIDMode="AutoID" CssFilePath="~/App_Themes/PlasticBlue/{0}/styles.css"
                                                    CssPostfix="PlasticBlue" Width="99%" AutoGenerateColumns="False" 
                                                    OnAfterPerformCallback="grdListaDiagnostico_AfterPerformCallback">
                                                    <Columns>
                                                        <dx:GridViewDataTextColumn FieldName="DIA_ID_DIAGNOSTICO" ShowInCustomizationForm="True"
                                                            VisibleIndex="0" Visible="False">
                                                            <PropertiesTextEdit>
                                                                <ValidationSettings ErrorText="Valor inválido">
                                                                    <RegularExpression ErrorText="Falló la validación de expresión Regular" />
                                                                </ValidationSettings>
                                                            </PropertiesTextEdit>
                                                        </dx:GridViewDataTextColumn>
                                                        <dx:GridViewDataTextColumn FieldName="DIA_DESCRIPCION" ShowInCustomizationForm="True"
                                                            VisibleIndex="1" Caption="Descripcion" Width="150px">
                                                            <PropertiesTextEdit>
                                                                <ValidationSettings ErrorText="Valor inválido">
                                                                    <RegularExpression ErrorText="Falló la validación de expresión Regular" />
                                                                </ValidationSettings>
                                                            </PropertiesTextEdit>
                                                        </dx:GridViewDataTextColumn>
                                                        <dx:GridViewDataTextColumn FieldName="DIA_CODIGO_CIE10" ShowInCustomizationForm="True"
                                                            VisibleIndex="2" Caption="Cod.CIE10">
                                                            <PropertiesTextEdit>
                                                                <ValidationSettings ErrorText="Valor inválido">
                                                                    <RegularExpression ErrorText="Falló la validación de expresión Regular" />
                                                                </ValidationSettings>
                                                            </PropertiesTextEdit>
                                                        </dx:GridViewDataTextColumn>
                                                        <dx:GridViewDataTextColumn FieldName="DES_CATEGORIA" ShowInCustomizationForm="True"
                                                            VisibleIndex="3" Caption="Categoria" Width="150px">
                                                            <PropertiesTextEdit>
                                                                <ValidationSettings ErrorText="Valor inválido">
                                                                    <RegularExpression ErrorText="Falló la validación de expresión Regular" />
                                                                </ValidationSettings>
                                                            </PropertiesTextEdit>
                                                        </dx:GridViewDataTextColumn>
                                                        <dx:GridViewDataTextColumn FieldName="DES_GRUPO" ShowInCustomizationForm="True" 
                                                            VisibleIndex="4" Caption="Grupo" Width="150px">
                                                            <PropertiesTextEdit>
                                                                <ValidationSettings ErrorText="Valor inválido">
                                                                    <RegularExpression ErrorText="Falló la validación de expresión Regular" />
                                                                </ValidationSettings>
                                                            </PropertiesTextEdit>
                                                        </dx:GridViewDataTextColumn>
                                                        <dx:GridViewDataTextColumn FieldName="DES_CAPITULO" ShowInCustomizationForm="True"
                                                            VisibleIndex="5" Caption="Capitulo" Width="150px">
                                                            <PropertiesTextEdit>
                                                                <ValidationSettings ErrorText="Valor inválido">
                                                                    <RegularExpression ErrorText="Falló la validación de expresión Regular" />
                                                                </ValidationSettings>
                                                            </PropertiesTextEdit>
                                                        </dx:GridViewDataTextColumn>
                                                    </Columns>
                                                    <SettingsPager ShowDefaultImages="False">
                                                        <AllButton Text="All">
                                                        </AllButton>
                                                        <NextPageButton Text="Next &gt;">
                                                        </NextPageButton>
                                                        <PrevPageButton Text="&lt; Prev">
                                                        </PrevPageButton>
                                                    </SettingsPager>
                                                    <SettingsLoadingPanel Text="Cargando&amp;hellip;"></SettingsLoadingPanel>
                                                    <Images SpriteCssFilePath="~/App_Themes/PlasticBlue/{0}/sprite.css">
                                                        <LoadingPanelOnStatusBar Url="~/App_Themes/PlasticBlue/GridView/gvLoadingOnStatusBar.gif">
                                                        </LoadingPanelOnStatusBar>
                                                        <LoadingPanel Url="~/App_Themes/PlasticBlue/GridView/Loading.gif">
                                                        </LoadingPanel>
                                                    </Images>
                                                    <ImagesFilterControl>
                                                        <LoadingPanel Url="~/App_Themes/PlasticBlue/Editors/Loading.gif">
                                                        </LoadingPanel>
                                                    </ImagesFilterControl>
                                                    <Styles CssFilePath="~/App_Themes/PlasticBlue/{0}/styles.css" CssPostfix="PlasticBlue">
                                                        <Header ImageSpacing="10px" SortingImageSpacing="10px">
                                                        </Header>
                                                    </Styles>
                                                    <StylesEditors>
                                                        <CalendarHeader Spacing="11px">
                                                        </CalendarHeader>
                                                        <ProgressBar Height="25px">
                                                        </ProgressBar>
                                                    </StylesEditors>
                                                </dx:ASPxGridView>
                                            </td>
                                        </tr>
                                    </table>
                                </dx:ContentControl>
                            </ContentCollection>
                        </dx:TabPage>
                    </TabPages>
                    <LoadingPanelImage Url="~/App_Themes/PlasticBlue/Web/tcLoading.gif">
                    </LoadingPanelImage>
                    <Paddings PaddingLeft="5px" PaddingRight="5px" PaddingTop="3px" />
                    <ContentStyle>
                        <Border BorderWidth="0px" />
                    </ContentStyle>
                </dx:ASPxPageControl>
            </td>
        </tr>
    </table>
    <br />
    <dx:ASPxPopupControl ID="pcMensaje" runat="server" Width="350px" AllowDragging="True"
        AllowResize="True" ClientInstanceName="pcMensaje" CloseAction="CloseButton" CssPostfix="PlasticBlue"
        HeaderText="Mensaje" Modal="True" PopupHorizontalAlign="WindowCenter" PopupVerticalAlign="WindowCenter"
        DragElement="Window">
        <HeaderImage Url="~/Imagenes/iconError.png" Width="20px">
        </HeaderImage>
        <HeaderStyle Font-Bold="True" />
        <ContentCollection>
            <dx:PopupControlContentControl runat="server" SupportsDisabledAttribute="True">
                <table style="width: 100%;">
                    <tr>
                        <td class="Filas" align="center">
                            <dx:ASPxLabel ID="lblMensaje" runat="server">
                            </dx:ASPxLabel>
                        </td>
                    </tr>
                    <tr>
                        <td class="Filas" align="center">
                            <dx:ASPxButton ID="btnPopAceptar" runat="server" Text="Aceptar" CssPostfix="PlasticBlue"
                                AllowDragging="True" DragElement="Window" Font-Bold="True" AutoPostBack="False">
                                <ClientSideEvents Click="function(s, e) {
	pcMensaje.Hide();
}" />
                            </dx:ASPxButton>
                        </td>
                    </tr>
                </table>
            </dx:PopupControlContentControl>
        </ContentCollection>
    </dx:ASPxPopupControl>
</asp:Content>
